package com.yljk.yljkproject.utils;

import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.core.DeviceEventManagerModule;

public class EventEmitter {

    public static ReactContext mReactContext;

    public static void send (String eventName,String content){
        if (mReactContext == null){
            return;
        }
        mReactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(eventName,content);
    }


}
